import Vue from 'vue'
import uploading from './uploading.vue'

const homeBox = Vue.extend(uploading)

uploading.start = function (data) {
  // eslint-disable-next-line new-cap
  let instance = new homeBox({data}).$mount()

  document.body.appendChild(instance.$el)

  Vue.nextTick(() => {
    instance.flag = true
  })

  return instance
}

export default uploading
